import { $t } from '@/plugins/i18n'

export default {
  path: '/components',
  name: 'Components',
  redirect: '/components/form',
  level: 1,
  meta: {
    title: $t('route.components'),
    icon: 'icon-auth',
    rank: 1
  },
  children: [
    {
      path: '/components/form',
      name: 'CompForm',
      meta: {
        title: $t('route.CompForm'),
        menu: true
      },
      component: () => import('@/views/component/form/index.vue')
    },
    {
      path: '/components/pro-table',
      name: 'CompProTable',
      meta: {
        title: $t('route.ProTable'),
        menu: true
      },
      component: () => import('@/views/component/proTable/index.vue')
    }
  ]
} satisfies RouteConfigsTable
